@echo off

:begin
ping -n 10 127.1>NUL
tasklist| find  /i  "erl.exe"
if  "%errorlevel%" == "1"  start  cmd /k "cd /d D:\app\emqx\emqx\bin&&emqx start&&exit"
goto begin